﻿# Makefile 
# Author yi.zhang

include ../Makefile.param

OBJS_DIR=$(shell pwd)

TARGET = libquictls.a

TEST_OBJS := 
OBJS := $(filter-out $(TEST_OBJS), $(patsubst %.c,%.o,$(wildcard $(OBJS_DIR)/*.c)))

# INCLUDE += -I/solar/ROOTSYS/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/
INCLUDE += -I$(OBJS_DIR)/../openssl-1.1.1d/include
INCLUDE += -I$(OBJS_DIR)/include

all: $(TARGET)

CFLAGS  = -Wall -O2 -g -std=c99 -fPIC

$(TARGET): $(OBJS)
	$(AR) -rcv $@ $(OBJS)
	
%.o: %.c
	$(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $<

clean:
	rm -f $(TARGET) $(OBJS_DIR)/*.o

